﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sistema_Totem.Logica.Clases;

namespace Sistema_Totem.Vista.Involucrados
{
    public partial class ListarEliminarInvolucrado : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                List<Involucrado> formatos = ObtenerInvolucrado();
                GridViewInvolucrado.DataSource = formatos;
                GridViewInvolucrado.DataBind();

            }

        }

        protected List<Involucrado> ObtenerInvolucrado()
        {
            List<Involucrado> formatos = new List<Involucrado>();

            for (int i = 1; i <= 20; i++)
            {
                Involucrado formato = new Involucrado
                {
                    Cedula = i,
                    Nombre = "Involucrado " + i,
                    Cargo = "Rol " + i,
                };
                formatos.Add(formato);
            }
            return formatos;
        }

        protected void GridViewInvolucrado_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void GridViewInvolucrado_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {

        }

        protected void GridViewInvolucrado_SelectedIndexChanged1(object sender, EventArgs e)
        {

        }
   
    }
}